CreatePresetResponse.fromJson constructor

CreatePresetResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CreatePresetResponse.fromJson(Map<String, dynamic> json) {
  return CreatePresetResponse(
    preset: json['Preset'] != null
        ? Preset.fromJson(json['Preset'] as Map<String, dynamic>)
        : null,
    warning: json['Warning'] as String?,
  );
}