toPluralName function
Convert singular field name to plural format
Implementation
String toPluralName(String s) => s.endsWith('y')
? '${s.substring(0, s.length - 1)}ies'
: (s.endsWith('s') || s.endsWith('o '))
? '${s}es'
: '${s}s';