Note.fromJson constructor

Note.fromJson(
  1. Map json_
)

Implementation

Note.fromJson(core.Map json_)
    : this(
        attachments: json_.containsKey('attachments')
            ? (json_['attachments'] as core.List)
                .map((value) => Attachment.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        body: json_.containsKey('body')
            ? Section.fromJson(
                json_['body'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        permissions: json_.containsKey('permissions')
            ? (json_['permissions'] as core.List)
                .map((value) => Permission.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        trashTime: json_.containsKey('trashTime')
            ? json_['trashTime'] as core.String
            : null,
        trashed: json_.containsKey('trashed')
            ? json_['trashed'] as core.bool
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );