Attachment.fromJson constructor

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

Implementation

Attachment.fromJson(Map<String, dynamic> json) {
  type = json['type'];
  kind = json['kind'];
  payload =
      json['payload'] != null ? new Payload.fromJson(json['payload']) : null;
  if (json['mobile'] != null) {
    mobile = new List<dynamic>();
    json['mobile'].forEach((v) {
      mobile.add(v);
    });
  }
}