Author.fromJson constructor

Author.fromJson(
  1. Map json_
)

Implementation

Author.fromJson(core.Map json_)
    : this(
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        profilePhotoUri: json_.containsKey('profilePhotoUri')
            ? json_['profilePhotoUri'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );