PhoneNumberOrder.fromJson constructor

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

Implementation

factory PhoneNumberOrder.fromJson(Map<String, dynamic> json) {
  return PhoneNumberOrder(
    createdTimestamp: timeStampFromJson(json['CreatedTimestamp']),
    orderedPhoneNumbers: (json['OrderedPhoneNumbers'] as List?)
        ?.whereNotNull()
        .map((e) => OrderedPhoneNumber.fromJson(e as Map<String, dynamic>))
        .toList(),
    phoneNumberOrderId: json['PhoneNumberOrderId'] as String?,
    productType: (json['ProductType'] as String?)?.toPhoneNumberProductType(),
    status: (json['Status'] as String?)?.toPhoneNumberOrderStatus(),
    updatedTimestamp: timeStampFromJson(json['UpdatedTimestamp']),
  );
}