ContainerLookAndFeel.fromJson constructor

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

Implementation

factory ContainerLookAndFeel.fromJson(Map<String, Object?> json) {
  return ContainerLookAndFeel(
    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? ?? '',
    padding: json[r'padding'] as String? ?? '',
    borderRadius: json[r'borderRadius'] as String? ?? '',
  );
}