Workforce.fromJson constructor

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

Implementation

factory Workforce.fromJson(Map<String, dynamic> json) {
  return Workforce(
    workforceArn: json['WorkforceArn'] as String,
    workforceName: json['WorkforceName'] as String,
    cognitoConfig: json['CognitoConfig'] != null
        ? CognitoConfig.fromJson(
            json['CognitoConfig'] as Map<String, dynamic>)
        : null,
    createDate: timeStampFromJson(json['CreateDate']),
    lastUpdatedDate: timeStampFromJson(json['LastUpdatedDate']),
    oidcConfig: json['OidcConfig'] != null
        ? OidcConfigForResponse.fromJson(
            json['OidcConfig'] as Map<String, dynamic>)
        : null,
    sourceIpConfig: json['SourceIpConfig'] != null
        ? SourceIpConfig.fromJson(
            json['SourceIpConfig'] as Map<String, dynamic>)
        : null,
    subDomain: json['SubDomain'] as String?,
  );
}