ContentLookAndFeel.fromJson constructor

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

Implementation

factory ContentLookAndFeel.fromJson(Map<String, Object?> json) {
  return ContentLookAndFeel(
    screen: json[r'screen'] != null
        ? ScreenLookAndFeel.fromJson(json[r'screen']! as Map<String, Object?>)
        : null,
    container: json[r'container'] != null
        ? ContainerLookAndFeel.fromJson(
            json[r'container']! as Map<String, Object?>)
        : null,
    header: json[r'header'] != null
        ? ContainerLookAndFeel.fromJson(
            json[r'header']! as Map<String, Object?>)
        : null,
    body: json[r'body'] != null
        ? ContainerLookAndFeel.fromJson(
            json[r'body']! as Map<String, Object?>)
        : null,
  );
}