Padding.fromJson constructor

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

Creates a Padding instance from a JSON representation.

Implementation

Padding.fromJson(Map<String, dynamic> json) {
  left = json['left']?.toDouble();
  right = json['right']?.toDouble();
  top = json['top']?.toDouble();
  bottom = json['bottom']?.toDouble();
}