fromJson static method

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

Implementation

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