GetRegionsResult.fromJson constructor

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

Implementation

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