ListPresetsResponse.fromJson constructor

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

Implementation

factory ListPresetsResponse.fromJson(Map<String, dynamic> json) {
  return ListPresetsResponse(
    nextToken: json['nextToken'] as String?,
    presets: (json['presets'] as List?)
        ?.whereNotNull()
        .map((e) => Preset.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}