Sibling.fromJson constructor

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

Implementation

factory Sibling.fromJson(Map<String, dynamic> json) {
  return Sibling(
      json['id'],
      json['userId'],
      DateTime.parse(json['received']),
      json['pending'],
      json['fyi'],
      json['escalated'],
      json['estimate'],
      json['replied'] != null ? DateTime.parse(json['replied']) : null,
      json['action'],
      json['role']);
}