toJson method

Map<String, dynamic> toJson(
  1. Map<String, dynamic> toJson(
    1. T
    )
)

Implementation

Map<String, dynamic> toJson(Map<String, dynamic> Function(T) toJson) {
  return {
    // ignore: null_check_on_nullable_type_parameter
    'data': toJson(data!),
    'error': error,
    'message': message,
  };
}