Profile.fromJson constructor

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

Implementation

Profile.fromJson(Map<String, dynamic> json)
    : id = json['id'].toString(),
      uuid = json['attributes']['uuid'].toString(),
      content = json['attributes']['profileContent'].toString(),
      name = json['attributes']['name'].toString(),
      type = json['attributes']['profileType'].toString(),
      state = json['attributes']['profileState'].toString();