toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (defaultLimit != null) 'defaultLimit': defaultLimit!,
      if (description != null) 'description': description!,
      if (displayName != null) 'displayName': displayName!,
      if (duration != null) 'duration': duration!,
      if (freeTier != null) 'freeTier': freeTier!,
      if (maxLimit != null) 'maxLimit': maxLimit!,
      if (metric != null) 'metric': metric!,
      if (name != null) 'name': name!,
      if (unit != null) 'unit': unit!,
      if (values != null) 'values': values!,
    };