ErrorMessage.fromJson constructor
Create an error message from a JSON map
Implementation
factory ErrorMessage.fromJson(Map<String, dynamic> json) {
return ErrorMessage(
code: json['code'] as String,
message: json['message'] as String,
documentId: json['documentId'] as String,
);
}