Message.fromJson constructor

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

Implementation

factory Message.fromJson(Map<String, dynamic> json) {
  return Message(
    id: json['id'] as int,
    from: json['from'] as String,
    subject: json['subject'] as String,
    date: json['date'] as String,
  );
}