Role.fromJSON constructor
Implementation
factory Role.fromJSON(Map<String, dynamic> data) {
return Role(
(data["id"] as String),
rev: (data["rev"] as String?),
deletionDate: (data["deletionDate"] as int?),
name: (data["name"] as String?),
permissions: (data["permissions"] as List<dynamic>).map((x0) => (x0 as String) ).toSet(),
);
}