Orientation.fromJson constructor

Orientation.fromJson(
  1. Map _json
)

Implementation

Orientation.fromJson(core.Map _json)
    : this(
        id: _json.containsKey('id') ? _json['id'] as core.String : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        tags: _json.containsKey('tags')
            ? (_json['tags'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );