ScreenLookAndFeel.fromJson constructor

ScreenLookAndFeel.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory ScreenLookAndFeel.fromJson(Map<String, Object?> json) {
  return ScreenLookAndFeel(
    background: json[r'background'] as String? ?? '',
    backgroundAttachment: json[r'backgroundAttachment'] as String?,
    backgroundBlendMode: json[r'backgroundBlendMode'] as String?,
    backgroundClip: json[r'backgroundClip'] as String?,
    backgroundColor: json[r'backgroundColor'] as String?,
    backgroundImage: json[r'backgroundImage'] as String?,
    backgroundOrigin: json[r'backgroundOrigin'] as String?,
    backgroundPosition: json[r'backgroundPosition'] as String?,
    backgroundRepeat: json[r'backgroundRepeat'] as String?,
    backgroundSize: json[r'backgroundSize'] as String?,
    layer: json[r'layer'] != null
        ? ScreenLookAndFeelLayer.fromJson(
            json[r'layer']! as Map<String, Object?>)
        : null,
    gutterTop: json[r'gutterTop'] as String?,
    gutterRight: json[r'gutterRight'] as String?,
    gutterBottom: json[r'gutterBottom'] as String?,
    gutterLeft: json[r'gutterLeft'] as String?,
  );
}