FluentImage.fromJson constructor

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

Implementation

factory FluentImage.fromJson(Map<String, dynamic> json) {
  final img = _$FluentImageFromJson(json);
  img.textAlign = (json['textAlign'] as String?) ?? 'left';
  img.width = (json['width'] as num?)?.toDouble();
  img.height = (json['height'] as num?)?.toDouble();
  return img;
}