getAttachmentType function

String getAttachmentType(
  1. AttachmentType type
)

Implementation

String getAttachmentType(AttachmentType type) {
  String m;
  switch(type) {
    case AttachmentType.identityCard:
      m = 'identityCard';
      break;
    case AttachmentType.avatar:
      m = 'avatar';
      break;
    case AttachmentType.bank:
      m = 'bank';
      break;
    case AttachmentType.voucher:
      m = 'voucher';
      break;
    case AttachmentType.system:
      m = 'system';
      break;
    case AttachmentType.message:
      m = 'message';
      break;
    case AttachmentType.custom:
      m = 'system';
      break;
  }
  return m;
}