CommunityResponse.fromJson constructor

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

Implementation

factory CommunityResponse.fromJson(Map<String, dynamic> json) =>
    CommunityResponse(
      list: json['communities'] == null
          ? null
          : List<Community>.from(json['communities'].map(Community.fromJson)),
    );