Preset.fromJson constructor
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(),
);
}