Site.fromJson constructor

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

Implementation

factory Site.fromJson(Map<String, dynamic> json) {
  return Site(
    accountId: json['AccountId'] as String?,
    description: json['Description'] as String?,
    name: json['Name'] as String?,
    siteId: json['SiteId'] as String?,
    tags: (json['Tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}