Studio.fromJson constructor
Implementation
factory Studio.fromJson(Map<String, dynamic> json) {
return Studio(
authMode: (json['AuthMode'] as String?)?.toAuthMode(),
creationTime: timeStampFromJson(json['CreationTime']),
defaultS3Location: json['DefaultS3Location'] as String?,
description: json['Description'] as String?,
engineSecurityGroupId: json['EngineSecurityGroupId'] as String?,
name: json['Name'] as String?,
serviceRole: json['ServiceRole'] as String?,
studioArn: json['StudioArn'] as String?,
studioId: json['StudioId'] as String?,
subnetIds: (json['SubnetIds'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
tags: (json['Tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
url: json['Url'] as String?,
userRole: json['UserRole'] as String?,
vpcId: json['VpcId'] as String?,
workspaceSecurityGroupId: json['WorkspaceSecurityGroupId'] as String?,
);
}