Instance.fromJson constructor
Instance.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Instance.fromJson(Map<String, dynamic> json) {
return Instance(
arn: json['Arn'] as String?,
createdTime: timeStampFromJson(json['CreatedTime']),
id: json['Id'] as String?,
identityManagementType:
(json['IdentityManagementType'] as String?)?.toDirectoryType(),
inboundCallsEnabled: json['InboundCallsEnabled'] as bool?,
instanceAlias: json['InstanceAlias'] as String?,
instanceStatus: (json['InstanceStatus'] as String?)?.toInstanceStatus(),
outboundCallsEnabled: json['OutboundCallsEnabled'] as bool?,
serviceRole: json['ServiceRole'] as String?,
statusReason: json['StatusReason'] != null
? InstanceStatusReason.fromJson(
json['StatusReason'] as Map<String, dynamic>)
: null,
);
}