toJson method

Map<String, dynamic> toJson()

JSON으로 변환

Implementation

Map<String, dynamic> toJson() => {
      'type': runtimeType.toString(),
      if (code != null) 'code': code,
      if (message != null) 'message': message,
      if (hint != null) 'hint': hint,
    };