copyIfSet<T> method
void
copyIfSet<T>()
Implementation
void copyIfSet<T>(
Map<String, dynamic> source,
String sourceKey,
Map<String, dynamic> dest,
String destKey,
) {
final value = source.takeOr<T>(sourceKey);
if (value != null) dest[destKey] = value;
}