MessagePartBody.fromJson constructor

MessagePartBody.fromJson(
  1. Map json_
)

Implementation

MessagePartBody.fromJson(core.Map json_)
    : this(
        attachmentId: json_.containsKey('attachmentId')
            ? json_['attachmentId'] as core.String
            : null,
        data: json_.containsKey('data') ? json_['data'] as core.String : null,
        size: json_.containsKey('size') ? json_['size'] as core.int : null,
      );