decode static method

RoomMessageAttachment decode(
  1. Object result
)

Implementation

static RoomMessageAttachment decode(Object result) {
  result as List<Object?>;
  return RoomMessageAttachment(
    displayName: result[0] as String?,
    extension: result[1] as String?,
    md5: result[2] as String?,
    url: result[3]! as String,
    size: result[4]! as int,
    thumbPath: result[5] as String?,
    path: result[6] as String?,
    width: result[7] as int?,
    height: result[8] as int?,
  );
}