GetPresetResponse.fromJson constructor

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

Implementation

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