ListFragmentsOutput.fromJson constructor

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

Implementation

factory ListFragmentsOutput.fromJson(Map<String, dynamic> json) {
  return ListFragmentsOutput(
    fragments: (json['Fragments'] as List?)
        ?.whereNotNull()
        .map((e) => Fragment.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}