ListVersionsResponse.fromJson constructor

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

Implementation

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