SettingsMutation.fromJson constructor

SettingsMutation.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory SettingsMutation.fromJson(Map<String, Object?> json) =>
    SettingsMutation(
      destinations: json["destinations"] == null
          ? null
          : core.PayoutDestinations.fromJson(json["destinations"]),
      fxEnabled:
          json["fx_enabled"] == null ? null : json["fx_enabled"] as bool,
      id: json["id"] == null ? null : json["id"] as String,
      limits: SettingsLimits.fromJson(
        (json['limits'] as Map).cast<String, Object?>(),
      ),
      schedule: json["schedule"] == null
          ? null
          : SettingsMutationSchedule.fromJson(
              (json["schedule"] as Map).cast<String, Object?>(),
            ),
    );