Skip to main content

fromJsonToList method

List<OrgInfo> fromJsonToList (List json)

Implementation

List\<OrgInfo\> fromJsonToList(List\<dynamic\> json) \{
final List\<OrgInfo\> orgList = [];
json.forEach((element) \{
final OrgInfo org = OrgInfo.fromJson(element as Map\<String, dynamic\>);
orgList.add(org);
\});
return orgList;
\}