OperationMessage.fromJson constructor

OperationMessage.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory OperationMessage.fromJson(Map<String, Object?> json) {
  return OperationMessage(
    message: json[r'message'] as String? ?? '',
    statusCode: (json[r'statusCode'] as num?)?.toInt() ?? 0,
  );
}