CubeContact.fromJson constructor

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

Implementation

CubeContact.fromJson(Map<String, dynamic> json) {
  name = json['name'];
  phone = json['phone'];
  destroy = json['destroy'] != null && json['destroy'] == 1;
}