InstanceSummary.fromJson constructor

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

Implementation

factory InstanceSummary.fromJson(Map<String, dynamic> json) {
  return InstanceSummary(
    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?,
  );
}