Workteam.fromJson constructor

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

Implementation

factory Workteam.fromJson(Map<String, dynamic> json) {
  return Workteam(
    description: json['Description'] as String,
    memberDefinitions: (json['MemberDefinitions'] as List)
        .whereNotNull()
        .map((e) => MemberDefinition.fromJson(e as Map<String, dynamic>))
        .toList(),
    workteamArn: json['WorkteamArn'] as String,
    workteamName: json['WorkteamName'] as String,
    createDate: timeStampFromJson(json['CreateDate']),
    lastUpdatedDate: timeStampFromJson(json['LastUpdatedDate']),
    notificationConfiguration: json['NotificationConfiguration'] != null
        ? NotificationConfiguration.fromJson(
            json['NotificationConfiguration'] as Map<String, dynamic>)
        : null,
    productListingIds: (json['ProductListingIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    subDomain: json['SubDomain'] as String?,
    workforceArn: json['WorkforceArn'] as String?,
  );
}