toJson method

Map toJson()

Implementation

Map toJson() => {
      'type': type,
      'data': data,
      'userInfo': userInfo?.toJson(),
    };