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,
  );
}