discontinuedPackage responsive_annotation has been discontinued.

ResponsiveConfig.fromJson constructor

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

Factory fromJson constructor for ResponsiveConfig.

Implementation

factory ResponsiveConfig.fromJson(Map<String, dynamic> json) {
  return ResponsiveConfig(
    widescreenBreakpoint:
        json['widescreen_breakpoint']?.toDouble() as double?,
    desktopBreakpoint: json['desktop_breakpoint']?.toDouble() as double?,
    laptopBreakpoint: json['laptop_breakpoint']?.toDouble() as double?,
    tabletBreakpoint: json['tablet_breakpoint']?.toDouble() as double?,
    mobileBreakpoint: json['mobile_breakpoint']?.toDouble() as double?,
  );
}