TileLayoutStyle.fromJson constructor

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

Implementation

factory TileLayoutStyle.fromJson(Map<String, dynamic> json) {
  return TileLayoutStyle(
    gutter: json['Gutter'] != null
        ? GutterStyle.fromJson(json['Gutter'] as Map<String, dynamic>)
        : null,
    margin: json['Margin'] != null
        ? MarginStyle.fromJson(json['Margin'] as Map<String, dynamic>)
        : null,
  );
}