BarcodePhone.fromJson constructor

BarcodePhone.fromJson(
  1. Map json
)

Returns an instance of BarcodePhone from a given json.

Implementation

factory BarcodePhone.fromJson(Map<dynamic, dynamic> json) => BarcodePhone(
      type: BarcodePhoneType.values[json['phoneType']],
      number: json['number'],
    );