Message.fromJson constructor
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,
);
}