DescribeResourceResponse.fromJson constructor

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

Implementation

factory DescribeResourceResponse.fromJson(Map<String, dynamic> json) {
  return DescribeResourceResponse(
    bookingOptions: json['BookingOptions'] != null
        ? BookingOptions.fromJson(
            json['BookingOptions'] as Map<String, dynamic>)
        : null,
    disabledDate: timeStampFromJson(json['DisabledDate']),
    email: json['Email'] as String?,
    enabledDate: timeStampFromJson(json['EnabledDate']),
    name: json['Name'] as String?,
    resourceId: json['ResourceId'] as String?,
    state: (json['State'] as String?)?.toEntityState(),
    type: (json['Type'] as String?)?.toResourceType(),
  );
}