NSize.fromJson constructor

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

Implementation

factory NSize.fromJson(Map<String, dynamic> json) {
  return NSize(
    json['width']?.toDouble() ?? 0.0,
    json['height']?.toDouble() ?? 0.0,
  );
}