Preset.fromJson constructor

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

Implementation

factory Preset.fromJson(Map<String, dynamic> json) {
  return Preset(
    name: json['name'] as String,
    settings:
        PresetSettings.fromJson(json['settings'] as Map<String, dynamic>),
    arn: json['arn'] as String?,
    category: json['category'] as String?,
    createdAt: timeStampFromJson(json['createdAt']),
    description: json['description'] as String?,
    lastUpdated: timeStampFromJson(json['lastUpdated']),
    type: (json['type'] as String?)?.toType(),
  );
}