CommunitiesSettings.fromJSON constructor

CommunitiesSettings.fromJSON(
  1. Map<String, dynamic> json
)

Implementation

CommunitiesSettings.fromJSON(Map<String, dynamic> json)
    : allowedActions = Utils.createIntBoolMap(json['allowedActions']),
      properties = Utils.createStringStringMap(json['properties']),
      labels = Utils.createStringList(json['labels']),
      isPrivate = json['isPrivate'] == true,
      isDiscoverable = json['isDiscoverable'] == true,
      permissions = Utils.createIntIntMap(json['permissions']);