Draft.fromJson constructor

Draft.fromJson(
  1. Map json_
)

Implementation

Draft.fromJson(core.Map json_)
    : this(
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        message: json_.containsKey('message')
            ? Message.fromJson(
                json_['message'] as core.Map<core.String, core.dynamic>)
            : null,
      );