Input$DocumentInput.fromJson constructor
Input$DocumentInput.fromJson(
- Map<String, dynamic> data
)
Implementation
factory Input$DocumentInput.fromJson(Map<String, dynamic> data) {
final result$data = <String, dynamic>{};
final l$name = data['name'];
result$data['name'] = (l$name as String);
if (data.containsKey('content')) {
final l$content = data['content'];
result$data['content'] = l$content == null
? null
: Input$DocumentContentInput.fromJson(
(l$content as Map<String, dynamic>));
}
if (data.containsKey('size')) {
final l$size = data['size'];
result$data['size'] = (l$size as num?)?.toDouble();
}
if (data.containsKey('owner')) {
final l$owner = data['owner'];
result$data['owner'] = (l$owner as String?);
}
return Input$DocumentInput._(result$data);
}