WorkAreaInsets.fromJson constructor

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

Implementation

factory WorkAreaInsets.fromJson(Map<String, dynamic> json) {
  return WorkAreaInsets(
    top: json.containsKey('top') ? json['top'] as int : null,
    left: json.containsKey('left') ? json['left'] as int : null,
    bottom: json.containsKey('bottom') ? json['bottom'] as int : null,
    right: json.containsKey('right') ? json['right'] as int : null,
  );
}