EmbeddedFile.fromJson constructor

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

Creates an EmbeddedFile from a JSON map

Implementation

factory EmbeddedFile.fromJson(Map<String, dynamic> json) {
  return EmbeddedFile(
    filePath: json['filePath'] as String,
    description: json['description'] as String?,
    contentType: json['contentType'] as String?,
  );
}