PostAuthor.fromJson constructor

PostAuthor.fromJson(
  1. Map json_
)

Implementation

PostAuthor.fromJson(core.Map json_)
    : this(
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        image: json_.containsKey('image')
            ? PostAuthorImage.fromJson(
                json_['image'] as core.Map<core.String, core.dynamic>)
            : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
      );