parse static method

dynamic parse(
  1. String name_addr_header
)

Parse the given string and returns a NameAddrHeader instance or null if it is an invalid NameAddrHeader.

Implementation

static dynamic parse(String name_addr_header) {
  dynamic parsed = Grammar.parse(name_addr_header, 'Name_Addr_Header');
  if (parsed != -1) {
    return parsed;
  } else {
    return null;
  }
}