HomeRegionControl.fromJson constructor

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

Implementation

factory HomeRegionControl.fromJson(Map<String, dynamic> json) {
  return HomeRegionControl(
    controlId: json['ControlId'] as String?,
    homeRegion: json['HomeRegion'] as String?,
    requestedTime: timeStampFromJson(json['RequestedTime']),
    target: json['Target'] != null
        ? Target.fromJson(json['Target'] as Map<String, dynamic>)
        : null,
  );
}