fromJson static method

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

Implementation

static ContentPartFile fromJson(Map<String, dynamic> json) => ContentPartFile(
      data: (json['data'] as List).cast<int>(),
      mediaType: json['media_type'] as String,
      filename: json['filename'] as String?,
      providerOptions: json['provider_options'] as Map<String, dynamic>?,
    );