MessageResponse.fromJson constructor

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

Implementation

factory MessageResponse.fromJson(Map<String, dynamic> json) {
  return MessageResponse(
    applicationId: json['ApplicationId'] as String,
    endpointResult: (json['EndpointResult'] as Map<String, dynamic>?)?.map(
        (k, e) => MapEntry(
            k, EndpointMessageResult.fromJson(e as Map<String, dynamic>))),
    requestId: json['RequestId'] as String?,
    result: (json['Result'] as Map<String, dynamic>?)?.map((k, e) =>
        MapEntry(k, MessageResult.fromJson(e as Map<String, dynamic>))),
  );
}