UserAvatar.fromJson constructor

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

Implementation

UserAvatar.fromJson(Map<String, dynamic> json)
    : this.avatar = (json.containsKey('body'))
          ? ifNullReturnEmpty(json['body']['user_avatar'])
          : '';