ListBranchesResult.fromJson constructor

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

Implementation

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