FlutterNativeAdImage.fromMap constructor

FlutterNativeAdImage.fromMap(
  1. Map<String, dynamic> map
)

Creates a FlutterNativeAdImage from a map.

Implementation

factory FlutterNativeAdImage.fromMap(Map<String, dynamic> map) {
  return FlutterNativeAdImage(
    url: map['url'] as String?,
    width: (map['width'] as num?)?.toDouble(),
    height: (map['height'] as num?)?.toDouble(),
    scale: (map['scale'] as num?)?.toDouble(),
  );
}