MessageResult.fromJson constructor

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

Implementation

factory MessageResult.fromJson(Map<String, dynamic> json) {
  return MessageResult(
    deliveryStatus: (json['DeliveryStatus'] as String).toDeliveryStatus(),
    statusCode: json['StatusCode'] as int,
    messageId: json['MessageId'] as String?,
    statusMessage: json['StatusMessage'] as String?,
    updatedToken: json['UpdatedToken'] as String?,
  );
}