toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() => {
      'status': status == MmWsActionResponseStatus.ok ? 'OK' : 'FAIL',
      if (seqReply != null) 'seq_reply': seqReply,
      if (data != null) 'data': {...data!},
      if (error != null) 'error': {...error!},
    };