TRequestBody.fromJson constructor

TRequestBody.fromJson(
  1. Map<String, dynamic> json
)

Creates an instance from a JSON map

Implementation

factory TRequestBody.fromJson(Map<String, dynamic> json) {
  return TRequestBody(
    description: json['description'] as String?,
    content: json['content'] == null
        ? null
        : MediaTypeContent.fromJson(
            json['content'] as Map<String, dynamic>,
          ),
  );
}