ListBranchesOutput.fromJson constructor

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

Implementation

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